package com.sunyard.utils;

import com.sunyard.exception.IllegalOperationException;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;

/**
 * @ClassName: CheckNull
 * @PackageName: com.sunyard.utils
 * @Deescription: TODO
 * @Author: zhix.huang
 * @Date: 2019/7/23 19:16
 * @Version: V1.0
 **/
@Slf4j
public class CheckNull {
    public static void checkNotNull(String str, String message) {
        if (StringUtils.isBlank(str)) {
            throw new IllegalOperationException(message);
        } else {
        }
    }
}
